package api

import (
	"github.com/gin-gonic/gin"
	"weekly/api/hadler"
	"weekly/api/middleware"
)

func UserLogin(c *gin.Engine) {
	c.Use(middleware.Demo)
	c.POST("/api/user/login", hadler.Login)
	c.GET("/api/user/chat", hadler.Chat)
	c.POST("/api/user/upload", hadler.Image)
}
